---
description: Raspberry Pi Pico W
---
# Raspberry Pi Pico W


RP2040 board from Raspberry Pi with a WiFi chip.


![Raspberry Pi Pico W picture](https://microsoft.github.io/jacdac-docs/images/devices/raspberry-pi/picowv00.catalog.jpg)

## Features

-  custom LED  (use [setStatusLight](/developer/status-light) to control)

{@import optional ./pico-w-features.mdp}


{@import optional ./pico-w-services.mdp}


:::caution

I2C pins are not [configured](/developer/board-configuration).

:::


## Stores

-  [https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html)
-  [https://www.raspberrypi.com/products/raspberry-pi-pico/](https://www.raspberrypi.com/products/raspberry-pi-pico/)

## Pins

| pin name | hardware id | features |
|:---------|:------------|---------:|
| **GP0** |  GPIO0 |  io |
| **GP1** |  GPIO1 |  io |
| **GP10** |  GPIO10 |  io |
| **GP11** |  GPIO11 |  io |
| **GP12** |  GPIO12 |  io |
| **GP13** |  GPIO13 |  io |
| **GP14** |  GPIO14 |  io |
| **GP15** |  GPIO15 |  io |
| **GP16** |  GPIO16 |  io |
| **GP17** |  GPIO17 |  io |
| **GP18** |  GPIO18 |  io |
| **GP19** |  GPIO19 |  io |
| **GP2** |  GPIO2 |  io |
| **GP20** |  GPIO20 |  io |
| **GP21** |  GPIO21 |  io |
| **GP22** |  GPIO22 |  io |
| **GP26** |  GPIO26 |  analogIn,  io |
| **GP27** |  GPIO27 |  analogIn,  io |
| **GP28** |  GPIO28 |  analogIn,  io |
| **GP3** |  GPIO3 |  io |
| **GP4** |  GPIO4 |  io |
| **GP5** |  GPIO5 |  io |
| **GP6** |  GPIO6 |  io |
| **GP7** |  GPIO7 |  io |
| **GP8** |  GPIO8 |  io |
| **GP9** |  GPIO9 |  io |
| **led.pin** |  GPIO25 |  led.pin,  wifi |



## DeviceScript import


You must add this import statement to load 
the pinout configuration for this device.

In [Visual Studio Code](/getting-started/vscode),
click the **wand** icon on the file menu and 
select "Raspberry Pi Pico W".

```ts
import { pins, board } from "@dsboard/pico_w"
```

{@import optional ./pico-w-examples.mdp}

## Firmware update

In Visual Studio Code,
select **DeviceScript: Flash Firmware...** from the command palette.
        
Run this [command line](/api/cli) command and follow the instructions.

```bash
devicescript flash --board pico_w
```


- [Firmware](https://github.com/microsoft/devicescript-pico/releases/latest/download/devicescript-rp2040w-pico_w.uf2)

## Configuration

```json title="pico_w.json"
{
    "$schema": "https://raw.githubusercontent.com/microsoft/devicescript-pico/main/boards/rp2040deviceconfig.schema.json",
    "id": "pico_w",
    "devName": "Raspberry Pi Pico W",
    "productId": "0x3a513204",
    "$description": "RP2040 board from Raspberry Pi with a WiFi chip.",
    "archId": "rp2040w",
    "url": "https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html",
    "led": {
        "#": "type=100 - special handling for Pico LED",
        "pin": 25,
        "type": 100
    },
    "pins": {
        "GP0": 0,
        "GP1": 1,
        "GP10": 10,
        "GP11": 11,
        "GP12": 12,
        "GP13": 13,
        "GP14": 14,
        "GP15": 15,
        "GP16": 16,
        "GP17": 17,
        "GP18": 18,
        "GP19": 19,
        "GP2": 2,
        "GP20": 20,
        "GP21": 21,
        "GP22": 22,
        "GP26": 26,
        "GP27": 27,
        "GP28": 28,
        "GP3": 3,
        "GP4": 4,
        "GP5": 5,
        "GP6": 6,
        "GP7": 7,
        "GP8": 8,
        "GP9": 9
    }
}
```
